package admin.main;

import java.text.SimpleDateFormat;
import java.util.Date;

public class EventBoardVO {
	
	private int no;
	private String id;
	private String nickname;
	private String subject;
	private String content;
	private String file_orgname;
	private String file_savname;
	private int readhit;
	private Date regdate;

	private String manmax;
	private String ladymax;
	private int man_count;
	private int lady_count;
	private String eventdate;
	private String eventdate_M;
	private String eventdate_D;
	
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getFile_orgname() {
		return file_orgname;
	}
	public void setFile_orgname(String file_orgname) {
		this.file_orgname = file_orgname;
	}
	public String getFile_savname() {
		return file_savname;
	}
	public void setFile_savname(String file_savname) {
		this.file_savname = file_savname;
	}
	public int getReadhit() {
		return readhit;
	}
	public void setReadhit(int readhit) {
		this.readhit = readhit;
	}
	public Date getRegdate() {
		return regdate;
	}
	public void setRegdate(Date regdate) {
		this.regdate = regdate;
	}
	public String getManmax() {
		return manmax;
	}
	public void setManmax(String manmax) {
		this.manmax = manmax;
	}
	public int getMan_count() {
		return man_count;
	}
	public void setMan_count(int man_count) {
		this.man_count = man_count;
	}
	public int getLady_count() {
		return lady_count;
	}
	public void setLady_count(int lady_count) {
		this.lady_count = lady_count;
	}
	public String getLadymax() {
		return ladymax;
	}
	public void setLadymax(String ladymax) {
		this.ladymax = ladymax;
	}
	public String getEventdate() {
		return eventdate;
	}
	public void setEventdate(String eventdate) {
		this.eventdate = eventdate;
	}
	public String getEventdate_M() throws Exception{
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		Date date = format.parse(eventdate);
		SimpleDateFormat format1 = new SimpleDateFormat("MM");
	   String resultDay = format1.format(date);
		return resultDay;
	}
	public void setEventdate_M(String eventdate) {
		this.eventdate = eventdate;
	}
	public String getEventdate_D() throws Exception{
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		Date date = format.parse(eventdate);
		SimpleDateFormat format1 = new SimpleDateFormat("dd");
		String resultDay = format1.format(date);
		return resultDay;
	}
	public void setEventdate_D(String eventdate) {
		this.eventdate = eventdate;
	}
	

}
